<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class IndexUser extends TimeModel
{

    protected $name = "index_user";

    protected $deleteTime = "delete_time";



    public function getStatusList()
    {
        return ['0' => '正常', '1' => '禁用',];
    }

    public function getPacProxyOutputAttr()
    {
        $content = $this->getAttr('pac_proxy');

        if (empty($content)) {
            $content = "var __PROXY__ = 'PROXY 127.0.0.1:1080;';";
        }

        return $content;
    }
}
